package com.zmn.oms.persistence.interfaces.purpose;

import com.zmn.oms.model.entity.purpose.OrderPurpose;
import com.zmn.oms.model.entity.purpose.OrderPurposeQuery;

import java.util.List;

/**
 * 类描述：意向单
 *
 * @author liuying
 * @date 2019/03/07 10:35
 */
public interface OrderPurposeDao {

    List<OrderPurpose> listOrderPurpose(OrderPurposeQuery query);

    int countOrderPurpose(OrderPurposeQuery query);

    /**
     * 新增
     *
     * @param orderPurpose
     * @return
     */
    int insertOrderPurpose(OrderPurpose orderPurpose);

    int updateOrderPurpose(OrderPurpose orderPurpose);

    OrderPurpose findOrderPurposeByKey(Integer orderPurposeId);
}